package com.dobbyspringside.examples.quickstart.rest;

import org.springframework.http.HttpStatus;

/**
 * Created by liguoqing on 2016/2/17.
 */
public class RestException extends RuntimeException {

    public HttpStatus status = HttpStatus.INTERNAL_SERVER_ERROR;

    public RestException() {
    }

    public RestException(HttpStatus status) {
        this.status = status;
    }

    public RestException(String message) {
        super(message);
    }

    public RestException(String message, HttpStatus status) {
        super(message);
        this.status = status;
    }




}
